Optimal. Leaf size=213 \[ \frac {a^2 (3 c-2 d) \tanh ^{-1}\left (\frac {\sqrt {c-d} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c+d}}\right )}{(c-d)^{3/2} (c+d)^{7/2} f}-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {(3 c-2 d) \left (a^2+a^2 \sec (e+f x)\right ) \tan (e+f x)}{6 (c-d) (c+d)^2 f (c+d \sec (e+f x))^2}+\frac {a^2 (3 c-2 d) \tan (e+f x)}{2 (c-d) (c+d)^3 f (c+d \sec (e+f x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 268, normalized size of antiderivative = 1.26, number of steps
used = 6, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {4072, 98, 96,
95, 211} \begin {gather*} -\frac {a^3 (3 c-2 d) \tan (e+f x) \text {ArcTan}\left (\frac {\sqrt {c+d} \sqrt {a \sec (e+f x)+a}}{\sqrt {c-d} \sqrt {a-a \sec (e+f x)}}\right )}{f (c-d)^{3/2} (c+d)^{7/2} \sqrt {a-a \sec (e+f x)} \sqrt {a \sec (e+f x)+a}}+\frac {a^2 (3 c-2 d) \tan (e+f x)}{2 f (c-d) (c+d)^3 (c+d \sec (e+f x))}+\frac {(3 c-2 d) \tan (e+f x) \left (a^2 \sec (e+f x)+a^2\right )}{6 f (c-d) (c+d)^2 (c+d \sec (e+f x))^2}-\frac {d \tan (e+f x) (a \sec (e+f x)+a)^2}{3 f \left (c^2-d^2\right ) (c+d \sec (e+f x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 96
Rule 98
Rule 211
Rule 4072
Rubi steps
\begin {align*} \int \frac {\sec (e+f x) (a+a \sec (e+f x))^2}{(c+d \sec (e+f x))^4} \, dx &=-\frac {\left (a^2 \tan (e+f x)\right ) \text {Subst}\left (\int \frac {(a+a x)^{3/2}}{\sqrt {a-a x} (c+d x)^4} \, dx,x,\sec (e+f x)\right )}{f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}\\ &=-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}-\frac {\left (a^2 (3 c-2 d) \tan (e+f x)\right ) \text {Subst}\left (\int \frac {(a+a x)^{3/2}}{\sqrt {a-a x} (c+d x)^3} \, dx,x,\sec (e+f x)\right )}{3 \left (c^2-d^2\right ) f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}\\ &=-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {(3 c-2 d) \left (a^2+a^2 \sec (e+f x)\right ) \tan (e+f x)}{6 (c-d) (c+d)^2 f (c+d \sec (e+f x))^2}-\frac {\left (a^3 (3 c-2 d) \tan (e+f x)\right ) \text {Subst}\left (\int \frac {\sqrt {a+a x}}{\sqrt {a-a x} (c+d x)^2} \, dx,x,\sec (e+f x)\right )}{2 (c+d) \left (c^2-d^2\right ) f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}\\ &=-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {(3 c-2 d) \left (a^2+a^2 \sec (e+f x)\right ) \tan (e+f x)}{6 (c-d) (c+d)^2 f (c+d \sec (e+f x))^2}+\frac {a^2 (3 c-2 d) \tan (e+f x)}{2 (c-d) (c+d)^3 f (c+d \sec (e+f x))}-\frac {\left (a^4 (3 c-2 d) \tan (e+f x)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a-a x} \sqrt {a+a x} (c+d x)} \, dx,x,\sec (e+f x)\right )}{2 (c+d)^2 \left (c^2-d^2\right ) f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}\\ &=-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {(3 c-2 d) \left (a^2+a^2 \sec (e+f x)\right ) \tan (e+f x)}{6 (c-d) (c+d)^2 f (c+d \sec (e+f x))^2}+\frac {a^2 (3 c-2 d) \tan (e+f x)}{2 (c-d) (c+d)^3 f (c+d \sec (e+f x))}-\frac {\left (a^4 (3 c-2 d) \tan (e+f x)\right ) \text {Subst}\left (\int \frac {1}{a c-a d-(-a c-a d) x^2} \, dx,x,\frac {\sqrt {a+a \sec (e+f x)}}{\sqrt {a-a \sec (e+f x)}}\right )}{(c+d)^2 \left (c^2-d^2\right ) f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}\\ &=-\frac {a^3 (3 c-2 d) \tan ^{-1}\left (\frac {\sqrt {c+d} \sqrt {a+a \sec (e+f x)}}{\sqrt {c-d} \sqrt {a-a \sec (e+f x)}}\right ) \tan (e+f x)}{(c-d)^{3/2} (c+d)^{7/2} f \sqrt {a-a \sec (e+f x)} \sqrt {a+a \sec (e+f x)}}-\frac {d (a+a \sec (e+f x))^2 \tan (e+f x)}{3 \left (c^2-d^2\right ) f (c+d \sec (e+f x))^3}+\frac {(3 c-2 d) \left (a^2+a^2 \sec (e+f x)\right ) \tan (e+f x)}{6 (c-d) (c+d)^2 f (c+d \sec (e+f x))^2}+\frac {a^2 (3 c-2 d) \tan (e+f x)}{2 (c-d) (c+d)^3 f (c+d \sec (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 4.86, size = 211, normalized size = 0.99 \begin {gather*} \frac {a^2 (c-d)^2 \left (24 (3 c-2 d) \tanh ^{-1}\left (\frac {(-c+d) \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {c^2-d^2}}\right ) (d+c \cos (e+f x))^3-2 \sqrt {c^2-d^2} \left (12 c^3-5 c^2 d+6 c d^2-22 d^3+6 \left (c^3+6 c^2 d-7 c d^2-2 d^3\right ) \cos (e+f x)+\left (12 c^3-7 c^2 d-6 c d^2-2 d^3\right ) \cos (2 (e+f x))\right ) \sin (e+f x)\right )}{24 (-c+d)^3 (c+d)^3 \sqrt {c^2-d^2} f (d+c \cos (e+f x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.56, size = 228, normalized size = 1.07
method | result | size |
derivativedivides | \(\frac {8 a^{2} \left (-\frac {\frac {\left (3 c -2 d \right ) \left (c -d \right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{8 c^{3}+24 c^{2} d +24 c \,d^{2}+8 d^{3}}-\frac {\left (3 c -2 d \right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 \left (c^{2}+2 c d +d^{2}\right )}+\frac {\left (5 c -6 d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{8 \left (c +d \right ) \left (c -d \right )}}{\left (c \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-d \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-c -d \right )^{3}}+\frac {\left (3 c -2 d \right ) \arctanh \left (\frac {\left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{8 \left (c^{4}+2 c^{3} d -2 c \,d^{3}-d^{4}\right ) \sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{f}\) | \(228\) |
default | \(\frac {8 a^{2} \left (-\frac {\frac {\left (3 c -2 d \right ) \left (c -d \right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{8 c^{3}+24 c^{2} d +24 c \,d^{2}+8 d^{3}}-\frac {\left (3 c -2 d \right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{3 \left (c^{2}+2 c d +d^{2}\right )}+\frac {\left (5 c -6 d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{8 \left (c +d \right ) \left (c -d \right )}}{\left (c \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-d \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-c -d \right )^{3}}+\frac {\left (3 c -2 d \right ) \arctanh \left (\frac {\left (c -d \right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{\sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{8 \left (c^{4}+2 c^{3} d -2 c \,d^{3}-d^{4}\right ) \sqrt {\left (c +d \right ) \left (c -d \right )}}\right )}{f}\) | \(228\) |
risch | \(\frac {i a^{2} \left (7 c^{5} d +2 c^{3} d^{3}+6 c^{4} d^{2}-12 c^{6}-24 c^{6} {\mathrm e}^{2 i \left (f x +e \right )}+3 c^{6} {\mathrm e}^{5 i \left (f x +e \right )}-12 c^{6} {\mathrm e}^{4 i \left (f x +e \right )}+8 d^{6} {\mathrm e}^{3 i \left (f x +e \right )}-3 c^{6} {\mathrm e}^{i \left (f x +e \right )}-54 c^{5} d \,{\mathrm e}^{i \left (f x +e \right )}+42 c^{4} d^{2} {\mathrm e}^{i \left (f x +e \right )}+24 c^{3} d^{3} {\mathrm e}^{i \left (f x +e \right )}+6 c^{2} d^{4} {\mathrm e}^{i \left (f x +e \right )}-18 c^{5} d \,{\mathrm e}^{5 i \left (f x +e \right )}+42 c^{4} d^{2} {\mathrm e}^{3 i \left (f x +e \right )}-12 c^{3} d^{3} {\mathrm e}^{3 i \left (f x +e \right )}+40 c^{2} d^{4} {\mathrm e}^{3 i \left (f x +e \right )}+24 c \,d^{5} {\mathrm e}^{3 i \left (f x +e \right )}+12 c^{3} d^{3} {\mathrm e}^{5 i \left (f x +e \right )}+6 c^{2} d^{4} {\mathrm e}^{5 i \left (f x +e \right )}+9 c^{5} d \,{\mathrm e}^{4 i \left (f x +e \right )}-54 c^{4} d^{2} {\mathrm e}^{4 i \left (f x +e \right )}+24 c^{3} d^{3} {\mathrm e}^{4 i \left (f x +e \right )}+36 c^{2} d^{4} {\mathrm e}^{4 i \left (f x +e \right )}+12 c \,d^{5} {\mathrm e}^{4 i \left (f x +e \right )}-72 c^{5} d \,{\mathrm e}^{3 i \left (f x +e \right )}+12 c^{5} d \,{\mathrm e}^{2 i \left (f x +e \right )}-72 c^{4} d^{2} {\mathrm e}^{2 i \left (f x +e \right )}+66 c^{3} d^{3} {\mathrm e}^{2 i \left (f x +e \right )}+36 c^{2} d^{4} {\mathrm e}^{2 i \left (f x +e \right )}+12 c \,d^{5} {\mathrm e}^{2 i \left (f x +e \right )}\right )}{3 c^{3} \left (c +d \right )^{2} f \left ({\mathrm e}^{2 i \left (f x +e \right )} c +2 d \,{\mathrm e}^{i \left (f x +e \right )}+c \right )^{3} \left (-c^{2}+d^{2}\right )}+\frac {3 a^{2} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+\frac {i c^{2}-i d^{2}+\sqrt {c^{2}-d^{2}}\, d}{\sqrt {c^{2}-d^{2}}\, c}\right ) c}{2 \sqrt {c^{2}-d^{2}}\, \left (c +d \right )^{3} \left (c -d \right ) f}-\frac {a^{2} \ln \left ({\mathrm e}^{i \left (f x +e \right )}+\frac {i c^{2}-i d^{2}+\sqrt {c^{2}-d^{2}}\, d}{\sqrt {c^{2}-d^{2}}\, c}\right ) d}{\sqrt {c^{2}-d^{2}}\, \left (c +d \right )^{3} \left (c -d \right ) f}-\frac {3 a^{2} \ln \left ({\mathrm e}^{i \left (f x +e \right )}-\frac {i c^{2}-i d^{2}-\sqrt {c^{2}-d^{2}}\, d}{\sqrt {c^{2}-d^{2}}\, c}\right ) c}{2 \sqrt {c^{2}-d^{2}}\, \left (c +d \right )^{3} \left (c -d \right ) f}+\frac {a^{2} \ln \left ({\mathrm e}^{i \left (f x +e \right )}-\frac {i c^{2}-i d^{2}-\sqrt {c^{2}-d^{2}}\, d}{\sqrt {c^{2}-d^{2}}\, c}\right ) d}{\sqrt {c^{2}-d^{2}}\, \left (c +d \right )^{3} \left (c -d \right ) f}\) | \(852\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 599 vs.
\(2 (207) = 414\).
time = 3.95, size = 1260, normalized size = 5.92 \begin {gather*} \left [\frac {3 \, {\left (3 \, a^{2} c d^{3} - 2 \, a^{2} d^{4} + {\left (3 \, a^{2} c^{4} - 2 \, a^{2} c^{3} d\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (3 \, a^{2} c^{3} d - 2 \, a^{2} c^{2} d^{2}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (3 \, a^{2} c^{2} d^{2} - 2 \, a^{2} c d^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {c^{2} - d^{2}} \log \left (\frac {2 \, c d \cos \left (f x + e\right ) - {\left (c^{2} - 2 \, d^{2}\right )} \cos \left (f x + e\right )^{2} + 2 \, \sqrt {c^{2} - d^{2}} {\left (d \cos \left (f x + e\right ) + c\right )} \sin \left (f x + e\right ) + 2 \, c^{2} - d^{2}}{c^{2} \cos \left (f x + e\right )^{2} + 2 \, c d \cos \left (f x + e\right ) + d^{2}}\right ) + 2 \, {\left (a^{2} c^{4} d + 6 \, a^{2} c^{3} d^{2} - 11 \, a^{2} c^{2} d^{3} - 6 \, a^{2} c d^{4} + 10 \, a^{2} d^{5} + {\left (12 \, a^{2} c^{5} - 7 \, a^{2} c^{4} d - 18 \, a^{2} c^{3} d^{2} + 5 \, a^{2} c^{2} d^{3} + 6 \, a^{2} c d^{4} + 2 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (a^{2} c^{5} + 6 \, a^{2} c^{4} d - 8 \, a^{2} c^{3} d^{2} - 8 \, a^{2} c^{2} d^{3} + 7 \, a^{2} c d^{4} + 2 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{12 \, {\left ({\left (c^{9} + 2 \, c^{8} d - c^{7} d^{2} - 4 \, c^{6} d^{3} - c^{5} d^{4} + 2 \, c^{4} d^{5} + c^{3} d^{6}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{8} d + 2 \, c^{7} d^{2} - c^{6} d^{3} - 4 \, c^{5} d^{4} - c^{4} d^{5} + 2 \, c^{3} d^{6} + c^{2} d^{7}\right )} f \cos \left (f x + e\right )^{2} + 3 \, {\left (c^{7} d^{2} + 2 \, c^{6} d^{3} - c^{5} d^{4} - 4 \, c^{4} d^{5} - c^{3} d^{6} + 2 \, c^{2} d^{7} + c d^{8}\right )} f \cos \left (f x + e\right ) + {\left (c^{6} d^{3} + 2 \, c^{5} d^{4} - c^{4} d^{5} - 4 \, c^{3} d^{6} - c^{2} d^{7} + 2 \, c d^{8} + d^{9}\right )} f\right )}}, \frac {3 \, {\left (3 \, a^{2} c d^{3} - 2 \, a^{2} d^{4} + {\left (3 \, a^{2} c^{4} - 2 \, a^{2} c^{3} d\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (3 \, a^{2} c^{3} d - 2 \, a^{2} c^{2} d^{2}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (3 \, a^{2} c^{2} d^{2} - 2 \, a^{2} c d^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {-c^{2} + d^{2}} \arctan \left (-\frac {\sqrt {-c^{2} + d^{2}} {\left (d \cos \left (f x + e\right ) + c\right )}}{{\left (c^{2} - d^{2}\right )} \sin \left (f x + e\right )}\right ) + {\left (a^{2} c^{4} d + 6 \, a^{2} c^{3} d^{2} - 11 \, a^{2} c^{2} d^{3} - 6 \, a^{2} c d^{4} + 10 \, a^{2} d^{5} + {\left (12 \, a^{2} c^{5} - 7 \, a^{2} c^{4} d - 18 \, a^{2} c^{3} d^{2} + 5 \, a^{2} c^{2} d^{3} + 6 \, a^{2} c d^{4} + 2 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )^{2} + 3 \, {\left (a^{2} c^{5} + 6 \, a^{2} c^{4} d - 8 \, a^{2} c^{3} d^{2} - 8 \, a^{2} c^{2} d^{3} + 7 \, a^{2} c d^{4} + 2 \, a^{2} d^{5}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{6 \, {\left ({\left (c^{9} + 2 \, c^{8} d - c^{7} d^{2} - 4 \, c^{6} d^{3} - c^{5} d^{4} + 2 \, c^{4} d^{5} + c^{3} d^{6}\right )} f \cos \left (f x + e\right )^{3} + 3 \, {\left (c^{8} d + 2 \, c^{7} d^{2} - c^{6} d^{3} - 4 \, c^{5} d^{4} - c^{4} d^{5} + 2 \, c^{3} d^{6} + c^{2} d^{7}\right )} f \cos \left (f x + e\right )^{2} + 3 \, {\left (c^{7} d^{2} + 2 \, c^{6} d^{3} - c^{5} d^{4} - 4 \, c^{4} d^{5} - c^{3} d^{6} + 2 \, c^{2} d^{7} + c d^{8}\right )} f \cos \left (f x + e\right ) + {\left (c^{6} d^{3} + 2 \, c^{5} d^{4} - c^{4} d^{5} - 4 \, c^{3} d^{6} - c^{2} d^{7} + 2 \, c d^{8} + d^{9}\right )} f\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a^{2} \left (\int \frac {\sec {\left (e + f x \right )}}{c^{4} + 4 c^{3} d \sec {\left (e + f x \right )} + 6 c^{2} d^{2} \sec ^{2}{\left (e + f x \right )} + 4 c d^{3} \sec ^{3}{\left (e + f x \right )} + d^{4} \sec ^{4}{\left (e + f x \right )}}\, dx + \int \frac {2 \sec ^{2}{\left (e + f x \right )}}{c^{4} + 4 c^{3} d \sec {\left (e + f x \right )} + 6 c^{2} d^{2} \sec ^{2}{\left (e + f x \right )} + 4 c d^{3} \sec ^{3}{\left (e + f x \right )} + d^{4} \sec ^{4}{\left (e + f x \right )}}\, dx + \int \frac {\sec ^{3}{\left (e + f x \right )}}{c^{4} + 4 c^{3} d \sec {\left (e + f x \right )} + 6 c^{2} d^{2} \sec ^{2}{\left (e + f x \right )} + 4 c d^{3} \sec ^{3}{\left (e + f x \right )} + d^{4} \sec ^{4}{\left (e + f x \right )}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 403 vs.
\(2 (198) = 396\).
time = 0.55, size = 403, normalized size = 1.89 \begin {gather*} -\frac {\frac {3 \, {\left (3 \, a^{2} c - 2 \, a^{2} d\right )} {\left (\pi \left \lfloor \frac {f x + e}{2 \, \pi } + \frac {1}{2} \right \rfloor \mathrm {sgn}\left (2 \, c - 2 \, d\right ) + \arctan \left (\frac {c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\sqrt {-c^{2} + d^{2}}}\right )\right )}}{{\left (c^{4} + 2 \, c^{3} d - 2 \, c d^{3} - d^{4}\right )} \sqrt {-c^{2} + d^{2}}} + \frac {9 \, a^{2} c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 24 \, a^{2} c^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 21 \, a^{2} c d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 6 \, a^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} - 24 \, a^{2} c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 16 \, a^{2} c^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 24 \, a^{2} c d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 16 \, a^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 15 \, a^{2} c^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 12 \, a^{2} c^{2} d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 21 \, a^{2} c d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 18 \, a^{2} d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{{\left (c^{4} + 2 \, c^{3} d - 2 \, c d^{3} - d^{4}\right )} {\left (c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - d \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c - d\right )}^{3}}}{3 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 5.09, size = 286, normalized size = 1.34 \begin {gather*} \frac {\frac {{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5\,\left (3\,a^2\,c^2-5\,a^2\,c\,d+2\,a^2\,d^2\right )}{{\left (c+d\right )}^3}-\frac {8\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (3\,a^2\,c-2\,a^2\,d\right )}{3\,{\left (c+d\right )}^2}+\frac {a^2\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (5\,c-6\,d\right )}{\left (c+d\right )\,\left (c-d\right )}}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (-3\,c^3-3\,c^2\,d+3\,c\,d^2+3\,d^3\right )-{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (-3\,c^3+3\,c^2\,d+3\,c\,d^2-3\,d^3\right )+3\,c\,d^2+3\,c^2\,d+c^3+d^3-{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^6\,\left (c^3-3\,c^2\,d+3\,c\,d^2-d^3\right )\right )}+\frac {2\,a^2\,\mathrm {atanh}\left (\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\sqrt {c-d}}{\sqrt {c+d}}\right )\,\left (\frac {3\,c}{2}-d\right )}{f\,{\left (c+d\right )}^{7/2}\,{\left (c-d\right )}^{3/2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________